<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('webmail/index')}">站点邮件列表</a></li>
			<li><a href="{:url('webmail/add')}">添加站点邮件</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('webmail/index')}">
            站点名称:
            <input type="text" class="form-control" name="websitename" style="width: 120px;" value="{:input('request.websitename/s','')}" placeholder="请输入站点名称">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('webmail/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>id</th>
					<th>站点名称</th>
					<th>邮件名称</th>
					<!-- <th>站点姓名</th> -->
					<th>邮件密码</th>
					<th>状态</th>
					<th>创建时间</th>
					<th>更新时间</th>
					
					<th width="130">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="webmailList" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.websitename}</td>
					<td>{$vo.emailname}</td>
					<!-- <td>{$vo.username}</td> -->
					<td>{$vo.emailpawd}</td>
					<td>{$status=($vo['status'] == 1)?"启用":"禁用";}</td>
					<td>{$vo.create_time}</td>
					<td>{$vo.update_time}</td>
					
					<td>
						<a href='{:url("webmail/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
						<a href="{:url('webmail/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>